package com.ityy.ruiji.service;

import com.ityy.ruiji.common.R;
import com.ityy.ruiji.entity.Category;
import com.ityy.ruiji.entity.Page;

import java.util.List;

public interface CategoryService {

    R<Page> findByPage(Integer page, Integer pageSize);

    R save(Category category);

    R deleteById(Long id);

    R updateById(Category category);

    List<Category> findAll();

    R list(Integer type);
}
